]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: reload search providers when installed applications change
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 30 Nov 2017 20:36:31 +0000 (12:36 -0800)
committerMarco Trevisan <mail@3v1n0.net>
Wed, 29 May 2019 20:33:16 +0000 (20:33 +0000)
Otherwise, a shell restart will be required after installing a new
application, before its results can be seen in search.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/562

js/ui/search.js

index fe4f6162bf43326929d85a99b420fa6d32dd0f9e..6ceee4f039cb3c6c5058a65ad45ef5dc2d7870d4 100644 (file)
@@ -431,6 +431,9 @@ var SearchResults = class {
         this._cancellable = new Gio.Cancellable();
 
         this._registerProvider(new AppDisplay.AppSearchProvider());
+
+        let appSystem = Shell.AppSystem.get_default();
+        appSystem.connect('installed-changed', this._reloadRemoteProviders.bind(this));
         this._reloadRemoteProviders();
     }